﻿using Flower.Model;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace FlowerWebAPI.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ImageController : ControllerBase
    {

        /// <summary>
        /// 获取图片列表的方法
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public List<ImageModel> GetImages()
        {
            List<ImageModel> list = new List<ImageModel>()
            {
                new ImageModel()
                {
                    ImageUrl ="/images/banners/21_birthday_banner_pc.jpg",
                    CourseUrl="https://www.hua.com/"
                },
                new ImageModel()
                {
                    ImageUrl ="/images/banners/21_brand_banner_pc.jpg",
                    CourseUrl="https://www.hua.com/"
                },
                new ImageModel()
                {
                    ImageUrl ="/images/banners/21_syz_banner_pc.jpg",
                    CourseUrl="https://www.hua.com/"
                }
            };
            return list;
        }

    }

}
